<?php
/**
 * User: lsx
 * Date: 2017/5/10
 * Time: 16:20
 * Progress:0%
 */

namespace model;


use think\Model;

class AccountPayment extends Model
{
    protected $insert = ['add_time'];

    protected function setAddTimeAttr()
    {
        return time();
    }

    protected function getAddTimeAttr($value){
        return date("Y-m-d H:i:s",$value);
    }
}